xen.git
19 years agoAdded Brctl.get_state, to support upcoming PIF implementation.
Ewan Mellor [Wed, 27 Dec 2006 15:39:32 +0000 (15:39 +0000)]
Added Brctl.get_state, to support upcoming PIF implementation.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoOverride logging.Logger.findCaller so that the trace function here does not
Ewan Mellor [Wed, 27 Dec 2006 15:39:04 +0000 (15:39 +0000)]
Override logging.Logger.findCaller so that the trace function here does not
appear as the source of log messages.

Remove the logger name from the log format -- it's adding no useful information.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoTidy and fix bindings for the SR class.
Ewan Mellor [Wed, 27 Dec 2006 11:49:59 +0000 (11:49 +0000)]
Tidy and fix bindings for the SR class.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix HVM booting through Xen-API when the kernel is unspecified.
Ewan Mellor [Wed, 27 Dec 2006 00:38:01 +0000 (00:38 +0000)]
Fix HVM booting through Xen-API when the kernel is unspecified.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoTidy up bindings for VDI class.
Ewan Mellor [Wed, 27 Dec 2006 00:35:27 +0000 (00:35 +0000)]
Tidy up bindings for VDI class.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[HVM] Route ISA IRQ 0 to IOAPIC GSI 2, just like 99% of native systems.
kaf24@localhost.localdomain [Tue, 26 Dec 2006 19:49:11 +0000 (19:49 +0000)]
[HVM] Route ISA IRQ 0 to IOAPIC GSI 2, just like 99% of native systems.
This is a built-in assumption of HPET 'legacy' IRQ routing, which is
why we have changed to this routing strategy now.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoImplement VM_BAD_POWER_STATE handling.
Ewan Mellor [Mon, 25 Dec 2006 19:29:05 +0000 (19:29 +0000)]
Implement VM_BAD_POWER_STATE handling.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded the BAD_VM_STATE error code, and tidy up the error code section.
Ewan Mellor [Mon, 25 Dec 2006 18:44:27 +0000 (18:44 +0000)]
Added the BAD_VM_STATE error code, and tidy up the error code section.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoPersist the VLAN setting.
Ewan Mellor [Mon, 25 Dec 2006 17:02:16 +0000 (17:02 +0000)]
Persist the VLAN setting.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix plumbing for PIF calls. Change xen_api_success to convert None to the
Ewan Mellor [Mon, 25 Dec 2006 16:56:46 +0000 (16:56 +0000)]
Fix plumbing for PIF calls.  Change xen_api_success to convert None to the
empty string, to make it easier to write setters.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoPersist network details when they change.
Ewan Mellor [Mon, 25 Dec 2006 16:42:24 +0000 (16:42 +0000)]
Persist network details when they change.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoImplement network.set_{name_{label,description},default_{gateway,netmask}}.
Ewan Mellor [Mon, 25 Dec 2006 16:36:48 +0000 (16:36 +0000)]
Implement network.set_{name_{label,description},default_{gateway,netmask}}.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoImplement network.get_{name_{label,description},default_{gateway,netmask}}.
Ewan Mellor [Mon, 25 Dec 2006 16:32:35 +0000 (16:32 +0000)]
Implement network.get_{name_{label,description},default_{gateway,netmask}}.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoChange the way that networks and PIFs relate to each other -- the PIF holds a
Ewan Mellor [Mon, 25 Dec 2006 16:26:51 +0000 (16:26 +0000)]
Change the way that networks and PIFs relate to each other -- the PIF holds a
reference to the network (and the host) not the other way around.  Persist only
the necessary details for the network (not the set of PIFs and VIFs).

Fix the plumbing of the network class inside XendAPI, and implement a few more
functions.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoCope with corrupt or empty VDI config files. Have to_record return strings
Ewan Mellor [Mon, 25 Dec 2006 16:24:15 +0000 (16:24 +0000)]
Cope with corrupt or empty VDI config files.  Have to_record return strings
rather than integers, as required by the Xen-API spec.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoChange the way that MESSAGE_PARAMETER_COUNT_MISMATCH is diagnosed (using a
Ewan Mellor [Mon, 25 Dec 2006 16:20:23 +0000 (16:20 +0000)]
Change the way that MESSAGE_PARAMETER_COUNT_MISMATCH is diagnosed (using a
separate dictionary to record parameter counts, rather than trying to parse them
out of the exception) and tidy up the validator preprocessing and the
validators themselves.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoPlumb the new PIF and network implementations in through the XendAPI class.
Ewan Mellor [Mon, 25 Dec 2006 15:04:28 +0000 (15:04 +0000)]
Plumb the new PIF and network implementations in through the XendAPI class.
Use the new stateful records to save host, SR, network, and PIF configuration.
Add extra functionality to the SR class, to calculate capacities et al.

By Alastair Tse <atse@xensource.com>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded get_record method.
Ewan Mellor [Mon, 25 Dec 2006 14:59:11 +0000 (14:59 +0000)]
Added get_record method.

By Alastair Tse <atse@xensource.com>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoNew XendNetwork and XendPIF classes, for implementing the Xen-API network and
Ewan Mellor [Mon, 25 Dec 2006 14:47:36 +0000 (14:47 +0000)]
New XendNetwork and XendPIF classes, for implementing the Xen-API network and
PIF classes.

By Alastair Tse <atse@xensource.com>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded support for state records in Xend, for keeping storage and network
Ewan Mellor [Mon, 25 Dec 2006 14:38:25 +0000 (14:38 +0000)]
Added support for state records in Xend, for keeping storage and network
details.

By Alastair Tse <atse@xensource.com>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdjust the argument counts for a MESSAGE_PARAMETER_COUNT_MISMATCH to account for
Ewan Mellor [Mon, 25 Dec 2006 14:32:41 +0000 (14:32 +0000)]
Adjust the argument counts for a MESSAGE_PARAMETER_COUNT_MISMATCH to account for
the fact that XenAPI adds the session handle transparently.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoDon't try to copy the .mo files if they haven't been built.
Ewan Mellor [Sat, 23 Dec 2006 21:32:05 +0000 (21:32 +0000)]
Don't try to copy the .mo files if they haven't been built.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded retry behaviour when receiving SESSION_INVALID. This means that xm shell
Ewan Mellor [Sat, 23 Dec 2006 20:20:34 +0000 (20:20 +0000)]
Added retry behaviour when receiving SESSION_INVALID.  This means that xm shell
and XenAPI.Session will reauthenticate across a Xend restart.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoOnly build the message database if msgfmt is installed.
Ewan Mellor [Sat, 23 Dec 2006 19:06:31 +0000 (19:06 +0000)]
Only build the message database if msgfmt is installed.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix escaping.
Ewan Mellor [Sat, 23 Dec 2006 11:37:01 +0000 (11:37 +0000)]
Fix escaping.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded I18N support for Xen-API error codes.
Ewan Mellor [Sat, 23 Dec 2006 11:24:10 +0000 (11:24 +0000)]
Added I18N support for Xen-API error codes.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMove get_by_uuid to the right place to have the input validated. The recent
Ewan Mellor [Sat, 23 Dec 2006 11:23:27 +0000 (11:23 +0000)]
Move get_by_uuid to the right place to have the input validated.  The recent
move was wrong.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[XEN] Add const attribute to elf_sanity_check() parameter on all arches.
kaf24@firebug.cl.cam.ac.uk [Sat, 23 Dec 2006 09:40:18 +0000 (09:40 +0000)]
[XEN] Add const attribute to elf_sanity_check() parameter on all arches.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years agoMore 'const' cleanups (and fixes, for Solaris).
kaf24@firebug.cl.cam.ac.uk [Sat, 23 Dec 2006 09:38:07 +0000 (09:38 +0000)]
More 'const' cleanups (and fixes, for Solaris).
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM] Revert cset 13103 for now, as it is causing boot errors.
Tim Deegan [Fri, 22 Dec 2006 22:57:47 +0000 (22:57 +0000)]
[HVM] Revert cset 13103 for now, as it is causing boot errors.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEND] Fix parsing of bootloader and bootloader_args in XendConfig
Alastair Tse [Fri, 22 Dec 2006 11:58:22 +0000 (11:58 +0000)]
[XEND] Fix parsing of bootloader and bootloader_args in XendConfig

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years agoFix description of ErrorDescription to be all strings, and update the examples.
Ewan Mellor [Fri, 22 Dec 2006 11:49:19 +0000 (11:49 +0000)]
Fix description of ErrorDescription to be all strings, and update the examples.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded Xen-API-style error handling for INTERNAL_ERROR and
Ewan Mellor [Fri, 22 Dec 2006 11:39:29 +0000 (11:39 +0000)]
Added Xen-API-style error handling for INTERNAL_ERROR and
MESSAGE_METHOD_UNKNOWN.  Only add the Xen-API methods to the official Xen-API
XML-RPC server, not to the legacy one.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMove the decoration of all the Xen-API methods out of XendAPI.__init__ and
Ewan Mellor [Fri, 22 Dec 2006 11:38:05 +0000 (11:38 +0000)]
Move the decoration of all the Xen-API methods out of XendAPI.__init__ and
into the module scope.  This avoids the decorators being added multiple times,
once for each server running.

Fix handling of MESSAGE_PARAMETER_COUNT_MISMATCH in many cases.  Move the
get_by_uuid declarations, so that those functions get the per-class validator
as well, to check for existence of the object requested.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoCope with a response that's not a dictionary.
Ewan Mellor [Fri, 22 Dec 2006 11:34:13 +0000 (11:34 +0000)]
Cope with a response that's not a dictionary.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[HVM] Missing gva->gpa translation in MMIO MOVS handler
Tim Deegan [Thu, 21 Dec 2006 20:44:35 +0000 (20:44 +0000)]
[HVM] Missing gva->gpa translation in MMIO MOVS handler
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoAdd a function for creating a domain from an existing XendConfig, and use that
Ewan Mellor [Thu, 21 Dec 2006 17:39:32 +0000 (17:39 +0000)]
Add a function for creating a domain from an existing XendConfig, and use that
on reboot, rather than writing out sxp and reparsing.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMore error codes.
Ewan Mellor [Thu, 21 Dec 2006 17:38:02 +0000 (17:38 +0000)]
More error codes.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoCreate new public header directory for x86-specific definitions.
kfraser@localhost.localdomain [Thu, 21 Dec 2006 16:20:11 +0000 (16:20 +0000)]
Create new public header directory for x86-specific definitions.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEND] Xen API commands cleanup.
Alastair Tse [Thu, 21 Dec 2006 14:49:19 +0000 (14:49 +0000)]
[XEND] Xen API commands cleanup.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Minor syntax cleanup in security.py for sxp parsing.
Alastair Tse [Thu, 21 Dec 2006 14:33:37 +0000 (14:33 +0000)]
[XEND] Minor syntax cleanup in security.py for sxp parsing.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years agoImplement the major part of the new error handling for the Xen-API.
Ewan Mellor [Thu, 21 Dec 2006 15:16:25 +0000 (15:16 +0000)]
Implement the major part of the new error handling for the Xen-API.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoDocument a few error codes.
Ewan Mellor [Thu, 21 Dec 2006 13:12:09 +0000 (13:12 +0000)]
Document a few error codes.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoDocument recent changes to the booting API, introducing PV and HVM groups in
Ewan Mellor [Thu, 21 Dec 2006 13:11:24 +0000 (13:11 +0000)]
Document recent changes to the booting API, introducing PV and HVM groups in
favour of the old kernel / BIOS sections.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoImprove consistency of type-attribute usage (volatile/const).
kfraser@localhost.localdomain [Thu, 21 Dec 2006 13:58:51 +0000 (13:58 +0000)]
Improve consistency of type-attribute usage (volatile/const).
From: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Update comments to reflect cset 13059:6cbed96fedac
Tim Deegan [Thu, 21 Dec 2006 13:48:13 +0000 (13:48 +0000)]
[XEN] Update comments to reflect cset 13059:6cbed96fedac
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[QEMU] Align VGA ram allocation
Tim Deegan [Thu, 21 Dec 2006 13:43:19 +0000 (13:43 +0000)]
[QEMU] Align VGA ram allocation
This makes the SSE-optimized vram_dirty() safe again.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEND] Add cpu_weight and cpu_cap parsing for SXP config create
Alastair Tse [Thu, 21 Dec 2006 12:08:27 +0000 (12:08 +0000)]
[XEND] Add cpu_weight and cpu_cap parsing for SXP config create

Reported by Masaki Kanno on :
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=835

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XM] Throw proper exception for xm console for unstarted domains.
Alastair Tse [Thu, 21 Dec 2006 12:05:41 +0000 (12:05 +0000)]
[XM] Throw proper exception for xm console for unstarted domains.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[HVM] Emulates HPET in hypervisor and extend ACPI tables.
kfraser@localhost.localdomain [Thu, 21 Dec 2006 12:05:34 +0000 (12:05 +0000)]
[HVM] Emulates HPET in hypervisor and extend ACPI tables.
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Eddie Dong <eddie.dong@intel.com>
Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
19 years ago[qemu patches] Update patches upto changeset 13113:fd1ccd818f2c.
Christian Limpach [Thu, 21 Dec 2006 11:33:15 +0000 (11:33 +0000)]
[qemu patches] Update patches upto changeset 13113:fd1ccd818f2c.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[HVM][VMX] Save GS_SHADOW MSR only on x86/64.
kfraser@localhost.localdomain [Thu, 21 Dec 2006 11:22:39 +0000 (11:22 +0000)]
[HVM][VMX] Save GS_SHADOW MSR only on x86/64.
Bug found by Kouya Shimura <kouya@jp.fujitsu.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX][IA64] New file swiotlb.h.
kfraser@localhost.localdomain [Thu, 21 Dec 2006 11:10:43 +0000 (11:10 +0000)]
[LINUX][IA64] New file swiotlb.h.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years ago[QEMU] Include pthread.h.
kfraser@localhost.localdomain [Thu, 21 Dec 2006 11:06:37 +0000 (11:06 +0000)]
[QEMU] Include pthread.h.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[qemu patches] Update patches upto changeset 13108:ed815cbdc90e.
Christian Limpach [Wed, 20 Dec 2006 15:22:46 +0000 (15:22 +0000)]
[qemu patches] Update patches upto changeset 13108:ed815cbdc90e.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[XEN] Emulator extensions to decode ModRM.MOD == 3.
kfraser@localhost.localdomain [Wed, 20 Dec 2006 15:16:13 +0000 (15:16 +0000)]
[XEN] Emulator extensions to decode ModRM.MOD == 3.
This allows emulation of register-only instructions.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Fix cset 13107:04c5f7b71ff4
Tim Deegan [Wed, 20 Dec 2006 13:54:04 +0000 (13:54 +0000)]
[XEN] Fix cset 13107:04c5f7b71ff4
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[HVM] Mask cmpxchg8b capability in cpuid for non-pae guests
Tim Deegan [Wed, 20 Dec 2006 12:07:10 +0000 (12:07 +0000)]
[HVM] Mask cmpxchg8b capability in cpuid for non-pae guests
This allows non-PAE NT4 kernels to boot
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEN] Don't pass spurious fast-path faults to the guest at all.
Tim Deegan [Wed, 20 Dec 2006 12:04:38 +0000 (12:04 +0000)]
[XEN] Don't pass spurious fast-path faults to the guest at all.
Instead, retry and get a sensible fault from the hardware next time.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEN] Clean up the shadow interface
Tim Deegan [Wed, 20 Dec 2006 12:03:07 +0000 (12:03 +0000)]
[XEN] Clean up the shadow interface
Remove a lot of unneccesary things from shadow.h, and move the shadow lock
entirely inside the shadow code.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[HVM] Add Etherboot option ROM, for network-booting HVM guests.
Tim Deegan [Wed, 20 Dec 2006 11:59:54 +0000 (11:59 +0000)]
[HVM] Add Etherboot option ROM, for network-booting HVM guests.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[HVM] Add expansion-ROM boot support to the ROMBIOS
Tim Deegan [Wed, 20 Dec 2006 11:57:53 +0000 (11:57 +0000)]
[HVM] Add expansion-ROM boot support to the ROMBIOS
This is rudimentary support for parts of the BIOS Boot Specification,
just enough to use Etherboot ROM images.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEN] Skip shadowing of guest PTE writes when known to be safe
Tim Deegan [Wed, 20 Dec 2006 11:54:57 +0000 (11:54 +0000)]
[XEN] Skip shadowing of guest PTE writes when known to be safe
That is, when the guest replaces a not-present pte with another one
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEN] Better diagnostics of recursive shadow faults
Tim Deegan [Wed, 20 Dec 2006 11:53:01 +0000 (11:53 +0000)]
[XEN] Better diagnostics of recursive shadow faults
Give a trace of the recursive fault instead of BUG()ing in the shadow handler.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[NET] front: Fix interface teardown.
kfraser@localhost.localdomain [Wed, 20 Dec 2006 11:39:22 +0000 (11:39 +0000)]
[NET] front: Fix interface teardown.

Original bug discovered and fixed by Glauber de Oliveira Costa
<gcosta@redhat.com>.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX] dma: Use swiotlb mask for coherent mappings too
kfraser@localhost.localdomain [Wed, 20 Dec 2006 11:21:04 +0000 (11:21 +0000)]
[LINUX] dma: Use swiotlb mask for coherent mappings too

The recent change to use a default DMA bit width of 30 bits (required
by chips like the b44) only converted the streaming DMA primitives.
The coherent mappings are still hard-coded to 31 bits.  This means
that b44 still doesn't work under Xen.

This patch makes the io_tlb_dma_bits variable global and uses it for
coherent memory mappings.

Thanks to Calvin Webster for providing a machine with a b44 and 2G
of memory I've been able to verify that this finally makes the b44
work under Xen.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Rename 'io_tlb_dma_bits' to the more correct 'dma_bits'. This also
affects the name of the boot parameter, which is now 'dma_bits='.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX] Disallow nested event delivery.
kfraser@localhost.localdomain [Wed, 20 Dec 2006 11:09:56 +0000 (11:09 +0000)]
[LINUX] Disallow nested event delivery.

This eliminates the risk of overflowing the kernel stack and is a
reasonable policy given that we have no concept of priorities among
event sources.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM] Sync per vcpu LAPIC timer with its TSC:
kfraser@localhost.localdomain [Wed, 20 Dec 2006 10:41:33 +0000 (10:41 +0000)]
[HVM] Sync per vcpu LAPIC timer with its TSC:
 - benefits LAPIC calibration
 - makes scheduling policy based on LAPIC more precise
 - makes LAPIC timer code becomes simpler and cleaner after using
   periodic time layer

Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
19 years ago[HVM] Enable more than one platform timer (PIT/RTC/HPET)
kfraser@localhost.localdomain [Wed, 20 Dec 2006 10:37:23 +0000 (10:37 +0000)]
[HVM] Enable more than one platform timer (PIT/RTC/HPET)
programmed as periodic timer and adds them to abstract layer, which
keeps track of pending_intr_nr to avoid time interrupt lost and
sync'ed timer with TSC.

It also makes some cleanup to the time related code.

Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
19 years ago[HVM][SVM] Modify the interrupt/event injection logic.
kfraser@localhost.localdomain [Wed, 20 Dec 2006 10:14:50 +0000 (10:14 +0000)]
[HVM][SVM] Modify the interrupt/event injection logic.

Resolves performance issues concerning AMD-V virtual interrupt/event
injection:
 - Remove extra VINTRs vmexits, and only setup fake interrupt if intr
   pending.
 - Allow both event injection and interrupt injection concurrently in
   vmcb.

Signed-off-by: Tom Woller <thomas.woller@amd.com>
19 years ago[BLTAP] Use getpagesize() for portability.
kfraser@localhost.localdomain [Wed, 20 Dec 2006 10:11:45 +0000 (10:11 +0000)]
[BLTAP] Use getpagesize() for portability.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years ago[HVM] Clean up CPUID handling.
kfraser@localhost.localdomain [Wed, 20 Dec 2006 10:09:42 +0000 (10:09 +0000)]
[HVM] Clean up CPUID handling.
From: Xin B Li <xin.b.li@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LIBXC] Fix iteration over GDT in save/restore code.
kfraser@localhost.localdomain [Wed, 20 Dec 2006 10:06:33 +0000 (10:06 +0000)]
[LIBXC] Fix iteration over GDT in save/restore code.
Bug spotted by Tim Wood.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAdded tag 3.0.4-branched for changeset 057f7c4dbed1c75a3fbe446d346cee04cff31497
kfraser@localhost.localdomain [Wed, 20 Dec 2006 09:48:21 +0000 (09:48 +0000)]
Added tag 3.0.4-branched for changeset 057f7c4dbed1c75a3fbe446d346cee04cff31497

19 years agoQcow-create reserve flag update.
Julian Chesterfield [Tue, 19 Dec 2006 21:33:12 +0000 (21:33 +0000)]
Qcow-create reserve flag update.

Signed-off-by: Julian Chesterfield <julian@xensource.com>
19 years agoQcow driver code cleanup:
Julian Chesterfield [Tue, 19 Dec 2006 20:42:56 +0000 (20:42 +0000)]
Qcow driver code cleanup:
- Remove global QCOW flags
- rename sparseness flag to -r fore 'reserve'
- Add ROUNDUP macro
- Check for qtruncate failures

Signed-off-by: Julian Chesterfield <julian@xensource.com>
19 years agoFix parsing of cpus in the guest configuration file.
Ewan Mellor [Tue, 19 Dec 2006 12:00:11 +0000 (12:00 +0000)]
Fix parsing of cpus in the guest configuration file.

Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com>
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
19 years ago[XENOPROF] Fix buffer sharing with auto-translate guests.
kfraser@localhost.localdomain [Tue, 19 Dec 2006 11:00:05 +0000 (11:00 +0000)]
[XENOPROF] Fix buffer sharing with auto-translate guests.
Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
19 years agoMerge with xen-ia64-unstable.hg
kfraser@localhost.localdomain [Tue, 19 Dec 2006 10:53:17 +0000 (10:53 +0000)]
Merge with xen-ia64-unstable.hg

19 years agomerge with xen-unstable.hg
awilliam@xenbuild2.aw [Mon, 18 Dec 2006 17:56:34 +0000 (10:56 -0700)]
merge with xen-unstable.hg

19 years ago[IA64] evtchn_callback fix and clean
awilliam@xenbuild2.aw [Mon, 18 Dec 2006 17:20:34 +0000 (10:20 -0700)]
[IA64] evtchn_callback fix and clean

Since we had changed to use event callback to deliver interrupts,

1. The pending_interruption is changed to pending_event.

2. get_ivr, set_tpr, get_trp and set_eoi are not used or only used
   in the initialization phase. There is no need to write this code
   in assembly.  This code is deleted.

3. hyper_ssm_i needs to be rewritten to jump to entchn_callback_handler
   instead of iva+0x3000 interrupt handler.  I will do this later.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
19 years ago[IA64] Mask out reserved bits to avoid Reserved Register/Field faults.
awilliam@xenbuild2.aw [Mon, 18 Dec 2006 17:04:49 +0000 (10:04 -0700)]
[IA64] Mask out reserved bits to avoid Reserved Register/Field faults.

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
19 years ago[IA64] Reflect general exceptions
awilliam@xenbuild2.aw [Mon, 18 Dec 2006 16:48:23 +0000 (09:48 -0700)]
[IA64] Reflect general exceptions

General exceptions in the domU with isr.code > 0x20 are now reflected
to the domU.

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
19 years ago[XEN] Revert 12977:af39d20b2b728941421ef18e5c5b1012852eec80
Ian Campbell [Mon, 18 Dec 2006 16:11:19 +0000 (16:11 +0000)]
[XEN] Revert 12977:af39d20b2b728941421ef18e5c5b1012852eec80

This changeset broke the ELF note layout on x86_64.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEN] Only print progress dots when scrubbing actual memory.
kfraser@localhost.localdomain [Mon, 18 Dec 2006 14:38:38 +0000 (14:38 +0000)]
[XEN] Only print progress dots when scrubbing actual memory.
Signed-off-by: Jes Sorensen <jes@sgi.com>
19 years agoFix _login to pass arguments to the server unconditionally, rather than
Ewan Mellor [Mon, 18 Dec 2006 00:14:40 +0000 (00:14 +0000)]
Fix _login to pass arguments to the server unconditionally, rather than
requiring precisely two on the client-side.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix the parsing of the image sexpr to use PV_kernel et al, rather than the old
Ewan Mellor [Mon, 18 Dec 2006 00:07:55 +0000 (00:07 +0000)]
Fix the parsing of the image sexpr to use PV_kernel et al, rather than the old
kernel_ variables.  This fixes reboot of PV guests.

Also, give XendConfig its own logger, to allow us to tweak the log level for
that module independently.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoWrite the xfb configuration details to the store, rather than storing them in
Ewan Mellor [Mon, 18 Dec 2006 00:00:57 +0000 (00:00 +0000)]
Write the xfb configuration details to the store, rather than storing them in
memory.  This ensures that the VM can be rebooted after a xend restart.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMinor tidyup.
Ewan Mellor [Sun, 17 Dec 2006 23:59:08 +0000 (23:59 +0000)]
Minor tidyup.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix printing of usage when OptionError is thrown.
Ewan Mellor [Sun, 17 Dec 2006 18:24:40 +0000 (18:24 +0000)]
Fix printing of usage when OptionError is thrown.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoOnly try to label resources if ACM is enabled.
Ewan Mellor [Sat, 16 Dec 2006 12:54:43 +0000 (12:54 +0000)]
Only try to label resources if ACM is enabled.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoAn error occurs if the first detach was successful and the 2nd one is
Ewan Mellor [Sat, 16 Dec 2006 12:52:18 +0000 (12:52 +0000)]
An error occurs if the first detach was successful and the 2nd one is
not (of course). Return if the 1st detach is successful, try the 2nd one
if it was not successful. Throw an error if the 2nd one fails.
This should also fix problems I am currently seeing in the xm-test
suite.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years ago[IA64] remove global zero initializers
awilliam@xenbuild2.aw [Fri, 15 Dec 2006 17:49:11 +0000 (10:49 -0700)]
[IA64] remove global zero initializers

No need to init global variables to zero as it will place them in the
data segment rather than the bss segment.

Signed-off-by: Jes Sorensen <jes@sgi.com>
19 years ago[TOOLS] USe -mno-direct-seg-refs when building on i386.
kfraser@localhost.localdomain [Fri, 15 Dec 2006 11:53:45 +0000 (11:53 +0000)]
[TOOLS] USe -mno-direct-seg-refs when building on i386.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix mem-set, mem-max, and vcpu-set commands when used against inactive domains.
Ewan Mellor [Fri, 15 Dec 2006 11:50:04 +0000 (11:50 +0000)]
Fix mem-set, mem-max, and vcpu-set commands when used against inactive domains.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
19 years agoUse new -p flag to qcow-create.
Ewan Mellor [Fri, 15 Dec 2006 11:48:40 +0000 (11:48 +0000)]
Use new -p flag to qcow-create.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoClean-up hvm/shadow interaction around cr3 updates.
Steven Hand [Fri, 15 Dec 2006 11:47:24 +0000 (11:47 +0000)]
Clean-up hvm/shadow interaction around cr3 updates.

Signed-off-by: Steven Hand <steven@xensource.com>
19 years agoFix more enum demarshalling.
Ewan Mellor [Fri, 15 Dec 2006 11:33:50 +0000 (11:33 +0000)]
Fix more enum demarshalling.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded a test for xen_vm_get_power_state.
Ewan Mellor [Fri, 15 Dec 2006 11:00:04 +0000 (11:00 +0000)]
Added a test for xen_vm_get_power_state.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoImprove XendCheckpoint's forkHelper error handling.
Brendan Cully [Thu, 14 Dec 2006 01:45:50 +0000 (17:45 -0800)]
Improve XendCheckpoint's forkHelper error handling.

When inputHandler raises an exception, close stdin and stdout in the
child before attempting to close stderr, which is held open by a
separate thread. Without this patch, exceptions raised by device
migration caused xend to hang on child.childerr.close().

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>